dnl configure.in

AC_PREREQ(2.67)

AC_INIT(jattbak, 0.1, ebrosius@netgarage.org)

AM_INIT_AUTOMAKE

AC_CONFIG_SRCDIR([src/jattbak/main.c])
AC_CONFIG_HEADER([src/jattbak/config.h])

AC_CANONICAL_BUILD
AC_CANONICAL_HOST


# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL


IC_TOOL_CHECK

AC_CHECK_TOOL(SIZE,size,false)
AS_IF([test "$SIZE" != "$host_prefix""size"],
   [AC_MSG_ERROR([size tool for $host_prefix not found])])
AC_SUBST(SIZE)

AC_CHECK_TOOL(OBJCOPY,objcopy,false)
AS_IF([test "$OBJCOPY" != "$host_prefix""objcopy"],
   [AC_MSG_ERROR([objcopy tool for $host_prefix not found])])
AC_SUBST(OBJCOPY)


# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler chara# Checks for library
# functions.


IC_PLATFORM_CONFIG

AS_IF([test "x$have_avr8_build" = "xtrue"],
   [AC_DEFINE([AVR8],1,[Define to enable avr 8bit build])])
AM_CONDITIONAL(AVR8_BUILD, test "x$have_avr8_build" = "xtrue")

MCU=$mcu
AC_SUBST(MCU)


AC_CONFIG_FILES([Makefile src/Makefile src/jattbak/Makefile])

AC_OUTPUT

